package com.bristua.mall.admin.common.enums;

/**
 * Created by Administrator on 2017/9/26 0026.
 */
public enum CommonCode {
    SUBMIT_SUCCESS(0,"提交成功"),
    WX_USER_NOT_BIND_PHONE(0,"未绑定手机号"),
    WX_USER_IS_BIND_PHONE(1,"手机号已绑定"),
    CANCEL_SUCCESS(0,"注销成功"),
    LOGIN_SUCCESS(0,"登录成功"),
    LOGIN_FAIL(1000,"登录失败"),
    SYS_EXCEPTION(9000, "系统异常,操作失败"),
    UILLEGAL_OPERATION_EXCEPTION(9001, "非法操作"),
    CONFIGE_READ_EXCEPTION(9006,"读取配置文件失败"),
    QUERY_SUCCESS(0, "查询成功"),
    INSERT_SUCCESS(0, "保存成功"),
    UPDATE_SUCCESS(0, "修改成功"),
    DELETE_SUCCESS(0, "删除成功"),
    BIND_SUCCESS(0,"绑定成功"),
    UPLOAD_SUCCESS(0, "上传成功"),
    IMG_UPLOAD_FAIL(1000,"图片上传失败"),
    SESSION_EXPIR(9002,"会话过期"),
    SESSION_FAIL(9001,"无效会话"),
    IMG_LOAD_FAIL(1001,"图片加载失败"),
    NODATE(1, "暂无数据");
    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    // 构造方法
    private CommonCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
